package com.lc.gateway.config;

import com.lc.gateway.filters.IpRequestLimitFilter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.HashMap;
import java.util.Map;

/**
 * @author liuc
 * @date 2021/6/28
 * @description
 **/
@Configuration
@RefreshScope
public class TestConfig {
    @Value("${spring.datasource.url}")
    private String url;

    @Bean
    public Map myMap(){
        System.out.println(url);
        return new HashMap();
    }
}
